<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


Route::get('/', 'ShopController@index');
Route::get('/goods/{gid}', 'ShopController@goods');
Route::get('/buy/{gid}', 'ShopController@buy');
Route::get('/cart', 'ShopController@cart');
Route::get('/clear', 'ShopController@clear');
Route::post('/done', 'ShopController@done');
Route::post('/payok', 'ShopController@payok');

Route::any('/wechat', 'WechatContoller@serve');

Route::get('login' , 'UserController@login');
Route::get('logout' , 'UserController@logout');
Route::get('user', 'UserController@index');

Route::post('admin/upload','UploadController@wangEditor')->middleware('admin')->name('admin.wangEditor.upload'); //编辑器上传处理
